package fantasy;

import java.util.Set;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class LeagueTeams {
	
    @PrimaryKey
    @Persistent
    private Key teamkey;
    
    @Persistent
    private LeagueSettings parentleague;

    @Persistent(mappedBy = "team")
    private Set<LeagueStandings> leaguestandings;
    
    @Persistent
    private Integer teamid;
    
    @Persistent
    private String teamname;

    @Persistent
    private String teamurl;
    
    @Persistent
    private Integer managerid;

    @Persistent
    private String managername;
    
    @Persistent
    private Integer comanagerid;

    @Persistent
    private String comanagername;

    
	public void setLeague(LeagueSettings league) {
		this.parentleague = league;
	}

	public LeagueSettings getLeague() {
		return parentleague;
	}

	/**
	 * @param leaguestandings the leaguestandings to set
	 */
	public void setLeaguestandings(Set<LeagueStandings> leaguestandings) {
		this.leaguestandings = leaguestandings;
	}

	/**
	 * @param leaguestandings the leaguestandings to set
	 */
	public void addLeaguestandings(LeagueStandings leaguestandings) {
		this.leaguestandings.add(leaguestandings);
	}

	/**
	 * @return the leaguestandings
	 */
	public Set<LeagueStandings> getLeaguestandings() {
		return leaguestandings;
	}

	public Key getTeamkey() {
		return teamkey;
	}

	public void setTeamkey(Key teamkey) {
		this.teamkey = teamkey;
	}

	public Integer getTeamid() {
		return teamid;
	}

	public void setTeamid(Integer teamid) {
		this.teamid = teamid;
	}

	public String getTeamname() {
		return teamname;
	}

	public void setTeamname(String teamname) {
		this.teamname = teamname;
	}

	public String getTeamurl() {
		return teamurl;
	}

	public void setTeamurl(String teamurl) {
		this.teamurl = teamurl;
	}

	public Integer getManagerid() {
		return managerid;
	}

	public void setManagerid(Integer managerid) {
		this.managerid = managerid;
	}

	public String getManagername() {
		return managername;
	}

	public void setManagername(String managername) {
		this.managername = managername;
	}

	public Integer getComanagerid() {
		return comanagerid;
	}

	public void setComanagerid(Integer comanagerid) {
		this.comanagerid = comanagerid;
	}

	public String getComanagername() {
		return comanagername;
	}

	public void setComanagername(String comanagername) {
		this.comanagername = comanagername;
	}







}
